package com.xusiyan08.repository;

import com.xusiyan08.entity.AdminAction;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminActionRepository extends JpaRepository<AdminAction, Long> {
    List<AdminAction> findByAdminUserId(Long adminId);
    List<AdminAction> findByTargetTypeAndTargetId(String targetType, Long targetId);
}
